using Net35.Xrm.Sdk;
using System;
using System.Runtime.Serialization;
namespace Net35.Crm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/crm/2011/Contracts")]
	public sealed class CreateExceptionRequest : OrganizationRequest
	{
		public Entity Target
		{
			get
			{
				if (base.Parameters.Contains("Target"))
				{
					return (Entity)base.Parameters["Target"];
				}
				return null;
			}
			set
			{
				base.Parameters["Target"] = value;
			}
		}
		public DateTime OriginalStartDate
		{
			get
			{
				if (base.Parameters.Contains("OriginalStartDate"))
				{
					return (DateTime)base.Parameters["OriginalStartDate"];
				}
				return default(DateTime);
			}
			set
			{
				base.Parameters["OriginalStartDate"] = value;
			}
		}
		public bool IsDeleted
		{
			get
			{
				return base.Parameters.Contains("IsDeleted") && (bool)base.Parameters["IsDeleted"];
			}
			set
			{
				base.Parameters["IsDeleted"] = value;
			}
		}
		public CreateExceptionRequest()
		{
			base.RequestName = "CreateException";
			this.Target = null;
			this.OriginalStartDate = default(DateTime);
			this.IsDeleted = false;
		}
	}
}
